/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package bmacotada.orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Cuestionario_1DetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression cu_id_cuestionario;
	public final StringExpression descripcion;
	
	public Cuestionario_1DetachedCriteria() {
		super(bmacotada.orm.Cuestionario_1.class, bmacotada.orm.Cuestionario_1Criteria.class);
		cu_id_cuestionario = new IntegerExpression("cu_id_cuestionario", this.getDetachedCriteria());
		descripcion = new StringExpression("descripcion", this.getDetachedCriteria());
	}
	
	public Cuestionario_1DetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, bmacotada.orm.Cuestionario_1Criteria.class);
		cu_id_cuestionario = new IntegerExpression("cu_id_cuestionario", this.getDetachedCriteria());
		descripcion = new StringExpression("descripcion", this.getDetachedCriteria());
	}
	
	public bmacotada.orm.Paciente_1DetachedCriteria createPaciente_1RutCriteria() {
		return new bmacotada.orm.Paciente_1DetachedCriteria(createCriteria("paciente_1Rut"));
	}
	
	public Pregunta_1DetachedCriteria createPregunta_1Pr_id_preguntaCriteria() {
		return new Pregunta_1DetachedCriteria(createCriteria("ORM_Pregunta_1Pr_id_pregunta"));
	}
	
	public Cuestionario_1 uniqueCuestionario_1(PersistentSession session) {
		return (Cuestionario_1) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Cuestionario_1[] listCuestionario_1(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Cuestionario_1[]) list.toArray(new Cuestionario_1[list.size()]);
	}
}

